package it.fc.action.users;

import it.fc.action.FcAction;
import it.fc.service.interfaces.IDbService;

import org.apache.log4j.Logger;

public class ActivateAction extends FcAction {

    private static Logger     log              = Logger.getLogger(ActivateAction.class);
    private static final long serialVersionUID = -3549502364404742878L;
    private String            accountId;

    @Override
    public String execute() throws Exception {
        log.info("CALL ActivateAction " + getAccountId());

        IDbService dbManager = getDbService();
        dbManager.activateUser(getAccountId());
        return SUCCESS;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }
}
